<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;


/**
 * App\Models\ShopStat
 *
 * @property int $shop_id
 * @property int $orders
 * @property int $visitors
 * @property float $turnover
 * @property int $month
 * @property-read \App\Models\Shop $shop
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\ShopStat newModelQuery()
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\ShopStat newQuery()
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\ShopStat query()
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\ShopStat whereMonth($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\ShopStat whereOrders($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\ShopStat whereShopId($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\ShopStat whereTurnover($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\ShopStat whereVisitors($value)
 * @mixin \Eloquent
 */
class ShopStat extends Model
{
    protected $table = 'shop_stat';
    protected $primaryKey = 'id';
    protected $fillable = ['shop_id', 'orders', 'visitors', 'turnover', 'month'];

    public $timestamps = false;

    /**
     * @return \Illuminate\Database\Eloquent\Relations\BelongsTo
     */
    public function shop()
    {
        return $this->belongsTo(Shop::class, 'shop_id', 'shop_id');
    }
}
